package com.zt.ztzx.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zt.ztzx.model.entity.product.Category;
import org.apache.ibatis.annotations.Delete;
import org.springframework.web.bind.annotation.DeleteMapping;

import java.util.List;

/**
* @author 16236
* @description 针对表【category(商品分类)】的数据库操作Mapper
* @createDate 2024-08-23 10:43:09
* @Entity com.zt.ztzx.pojo.Category
*/
public interface CategoryMapper extends BaseMapper<Category> {

    List<Category> findAll(Category category);

    @Delete("delete from category where id=#{id}")
    int deleteByCId(Integer id);
}




